-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Fix delivery_whitelist regex #5676
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@@ -140,11 +140,11 @@ by adding the ``delivery_whitelist`` option: | |||
delivery_whitelist: | |||
# all email addresses matching this regex will *not* be | |||
# redirected to dev@example.com | |||
- "/@specialdomain.com$/" | |||
- "/@specialdomain[.]com$/" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
imho we should rather escape the period with a backslash
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I am not mistaken, evaluating a character class is more expensive than evaluating a single character.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@gonzalovilaseca although I can't provide a solid reasoning for this, I agree with @xabbuh here. When escaping just one character, I find it "better" to use the backslash instead of the other notation:
- "/@specialdomain[.]com$/"
- "/@specialdomain\.com$/"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, will update PR
Terminate the `tip` directive with a blank line.
…ated position of depreciation notes
(committed by weaverryan, original credit to the author on this commit)
Moved to #5684 |
No description provided.